
#Region "Summary"
''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvApproveTime
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Query Result Single Business Entity
''' </summary>
''' <remarks>
''' Sample of business entity coding
''' </remarks>
''' <history>
''' 	[Generater by Nok]	1/4/2549 9:43:43	Created
''' </history>
''' -----------------------------------------------------------------------------
#End Region

#Region ".NET Framework Class Import"
Imports System
Imports System.Xml.Serialization
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Imports System.Collections
#End Region

<Serializable()> _
Public Class QueryInvApproveTime
#Region "Internal member variables"
    Private _TimeId As Int32
    Private _ApproveTime As String
#End Region

    Public Sub New()
        _TimeId = Nothing
        _ApproveTime = Nothing
    End Sub

    Public Sub New(ByVal TimeId As Int32, _
       ByVal ApproveTime As String)
        _TimeId = TimeId
        _ApproveTime = ApproveTime
    End Sub

#Region "Property"

    Public Property TimeId() As Int32
        Get
            Return _TimeId
        End Get
        Set(ByVal value As Int32)
            _TimeId = value
        End Set
    End Property


    Public Property ApproveTime() As String
        Get
            Return _ApproveTime
        End Get
        Set(ByVal value As String)
            _ApproveTime = value
        End Set
    End Property

#End Region
End Class

''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvApproveTimes
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Collection of query result
''' </summary>
''' <remarks>
''' Sample
''' </remarks>
''' <history>
''' 	[NOK'S Generater]	1/4/2549 9:43:43	Created
''' </history>
''' -----------------------------------------------------------------------------
<Serializable()> _
Public Class QueryInvApproveTimes
    Inherits CollectionBase


    Default Public ReadOnly Property Item(ByVal index As Integer) As QueryInvApproveTime
        Get
            If (index < 0 Or index >= Me.InnerList.Count) Then
                Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
            Else
                Return CType(Me.InnerList(index), QueryInvApproveTime)
            End If
        End Get
    End Property

    Public Sub Add(ByVal info As QueryInvApproveTime)
        Me.InnerList.Add(info)
    End Sub

    Public Sub SetItem(ByVal index As Integer, ByVal value As QueryInvApproveTime)
        If (index < 0 Or index >= Me.InnerList.Count) Then
            Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
        Else
            Me.InnerList(index) = value
        End If
    End Sub


End Class
